﻿@*
    For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
*@

@model TodoItem

@{
}

<form asp-action="AddItem" method="POST">
    <label asp-for="Title">Add a new item:</label>
    <input asp-for="Title">
    <input asp-for="DueAt" type="datetime-local" value="@DateTime.Now.AddDays(3).ToString("yyyy-MM-ddTHH:mm")" />
    <button type="submit" class="btn btn-light btn-outline-primary">Add</button>
</form>